﻿using System;
using Store;

namespace Factory
{
    public class FlowerFactory
    {
        static Random rnd = new Random();

        public static Bouquet CreateBouquet()
        {
            Bouquet bouquet = new Bouquet();

            return bouquet;
        }

        public static object CreateFlower(int flower_manually = 0)
        {
            if (flower_manually > 2) return false;

            Object flower = null;

            int f_number = flower_manually;

            switch (f_number)
            {
                case 0:
                    Tulip tulip = new Tulip();
                    tulip.Title = "Тюльпан";

                    flower = tulip;
                    break;
                case 1:
                    Snowdrop snowdrop = new Snowdrop();
                    snowdrop.Title = "Подснежник";
      
                    flower = snowdrop;
                    break;
                case 2:
                    Pansies pansies = new Pansies();
                    pansies.Title = "Анютины глазки";

                    flower = pansies;
                    break;
            }

            return flower;
        }
    }
}
